package Model;


/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public abstract class Person
{
    // instance variables - replace the example below with your own
    private String navn;
    private String adresse;
    private int tlfnr;
    private String by;
    private String email;

    /**
     * Constructor for objects of class Person
     */
    public Person(String navn, String adresse, int tlf, String by, String email)
    {
        this.navn = navn;
        this. adresse = adresse;
        this.tlfnr = tlf;
        this.by = by;
        this.email = email;
    }
    
    /**
     * this methods can give navn a new value
     * 
     * @param navn
     * @return nothing
     */
    public void setNavn(String navn)
    {
        this.navn = navn;
    }
    public void setadresse(String adresse)
    {
        this.adresse = adresse;
    }
    public void setTlfnr(int tlf)
    {
        this.tlfnr = tlf;
    }
    public void setBy(String by)
    {
        this.by = by;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }
    public String getNavn()
    {
        return this.navn;
    }
    public String setadresse()
    {
        return this.adresse;
    }
    public int setTlfnr()
    {
        return this.tlfnr;
    }
    public String setBy()
    {
        return this.by;
    }
    public String setEmail()
    {
        return this.email;
    }

}
